<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/26
 * Time: 15:10
 */

use \yii\helpers\Html;

/* @var $node \common\models\Department */
?>

<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title"><?= Yii::t('app', 'Actions') ?></h3>
            </div>
            <div class="box-body">
                <?= Html::a('<i class="fa fa-building"></i>', '/department/sync-from-hr?id=' . $node->id, [
                    'title' => Yii::t('app', 'Sync Department From HR'),
                    'class' => 'btn btn-default',
                    'target' => '_blank',
                ]) ?>
                <?= Html::a('<i class="fa fa-users"></i>', '/employee/sync-from-hr?department_id=' . $node->id, [
                    'title' => Yii::t('app', 'Sync Employee from HR'),
                    'class' => 'btn btn-default',
                    'target' => '_blank',
                ]) ?>
                <?= Html::a('<i class="fa fa-link"></i>', '/employee/sync-employee-department-relation?department_id=' . $node->id, [
                    'title' => Yii::t('app', 'Sync Employee Department Relation From HR'),
                    'class' => 'btn btn-default',
                    'target' => '_blank',
                ]) ?>
                <?= Html::a('<i class="fa fa-weixin"></i>', '/department/sync-to-qywx?id=' . $node->id, [
                    'title' => Yii::t('app', 'Sync Department To Qywx'),
                    'class' => 'btn btn-default',
                    'target' => '_blank',
                ]) ?>
                <?= Html::a('<i class="fa fa-file-image-o"></i>', '/employee/sync-photo?department_id=' . $node->id, [
                    'title' => Yii::t('app', 'Sync Employee Photo'),
                    'class' => 'btn btn-default',
                    'target' => '_blank',
                ]) ?>
                <?= Html::a('<i class="fa fa-weixin"></i>', '/qywx/qywx-user/sync-by-department?department_id=' . $node->id, [
                    'title' => Yii::t('app', 'Sync Employee To Qywx'),
                    'class' => 'btn btn-default',
                    'target' => '_blank',
                ]) ?>
            </div>
            <!-- /.box-body -->
        </div>
    </div>
</div>
